PWD := $(shell pwd)
# ccflags-y += -DDEBUG
# ccflags-y += -DKERNEL_VERSION_414
ifeq ($(CONFIG_RK_WIFI_DEVICE_UWE5622),y)
ccflags-y += -I$(srctree)/drivers/net/wireless/uwe5622/sprdwcn/include
endif
ccflags-y += -DOTT_UWE
ccflags-y += -Wno-implicit-fallthrough

ifneq ($(UNISOC_BSP_INCLUDE),)
ccflags-y += -I$(UNISOC_BSP_INCLUDE)
endif

sprdbt_tty-objs := \
	tty.o \
	rfkill.o \
	lpm.o \
	woble.o\
	alignment/sitm.o \
	dump.o

obj-m += sprdbt_tty.o

modules:
	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
	$(RM) Module.markers
	$(RM) modules.order
